<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('已提交审核列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="case-form">
                <div class="select-list">
                    <ul>
                        <li>
                            小程序名称：<input type="text" name="appletName"/>
                        </li>
                        <li>
                            店铺名称：<input type="text" name="shopName"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
        <div class="btn-group-sm" id="toolbar" role="group">
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "back/wechatOpen";

    $(function () {
        var options = {
            url: prefix + "/submitAuditList",
            sortName: "createTime",
            sortOrder: "desc",
            modalName: "审核代码列表",
            height: 600,
            columns: [
                {
                    field: 'id',
                    title: '提交ID'
                },
                {
                    field: 'templateId',
                    title: '模板ID',
                    sortable:true
                },
                {
                    field: 'appletAppId',
                    title: '小程序appId'
                },
                {
                    field: 'appletName',
                    title: '小程序名称'
                },
                {
                    field: 'userVersion',
                    title: '版本号'
                },
                {
                    field: 'userDesc',
                    title: '版本描述'
                },
                {
                    field: 'status',
                    title: '状态',
                    sortable:true
                },
                {
                    field: 'createBy',
                    title: '提交人'
                },
                {
                    field: 'createTime',
                    title: '提交时间',
                    sortable:true
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>